﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Reservation.aspx.cs" Inherits="WebUI.Teacher.Reservation" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager runat="server" ID="PageManager1" AutoSizePanelID="Panel1" />
    <ext:Panel runat="server" ID="Panel1" Title="预约实验室" ShowBorder="True" BodyPadding="5px"
        Layout="Row" ShowHeader="True" EnableBackgroundColor="false">
        <Items>
            <ext:Panel ID="Panel2" Height="240px" EnableBackgroundColor="true" runat="server"
                Layout="Column" ShowBorder="false" ShowHeader="false" Title="面板1">
                <Items>
                    <ext:Panel runat="server" ID="Panel4" ShowBorder="false" ShowHeader="true" BodyPadding="10px"
                        ColumnWidth="50%" Title="一，请选择预约实验室">
                        <Items>
                            <ext:Form runat="server" ID="Form2" ShowBorder="false" ShowHeader="false" LabelWidth="150px">
                                <Rows>
                                    <ext:FormRow>
                                        <Items>
                                            <ext:DropDownList runat="server" ID="dl_SelectLocation" Label="请选择实验楼" AutoPostBack="true"
                                                Width="220px" OnSelectedIndexChanged="dl_SelectLocation_SelectedIndexChanged">
                                            </ext:DropDownList>
                                        </Items>
                                    </ext:FormRow>
                                    <ext:FormRow>
                                        <Items>
                                            <ext:DropDownList runat="server" ID="dl_SelectLab" Label="请选择实验室" Hidden="true" Width="220px">
                                            </ext:DropDownList>
                                        </Items>
                                    </ext:FormRow>
                                    <ext:FormRow>
                                        <Items>
                                        </Items>
                                    </ext:FormRow>
                                </Rows>
                            </ext:Form>
                        </Items>
                    </ext:Panel>
                    <ext:Panel runat="server" ID="Panel5" ShowBorder="false" ShowHeader="true" ColumnWidth="50%"
                        Title="二，请选择预约日期">
                        <Items>
                            <ext:Calendar runat="server" ID="Calendar1" DateFormatString="yyyy-MM-dd" EnableDateSelect="true"
                                OnDateSelect="Calendar1_DateSelect">
                            </ext:Calendar>
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:Panel>
            <ext:Panel ID="Panel3" EnableBackgroundColor="true" runat="server" RowHeight="100%"
                BodyPadding="5px" ShowBorder="True" ShowHeader="false" Title="面板2">
                <Items>
                    <ext:Grid runat="server" ID="Grid1" ShowHeader="true" Height="300px" Title="实验室预约情况"
                        EnableRowNumber="true" EnableBackgroundColor="true">
                        <Columns>
                            <ext:BoundField DataField="lesson" HeaderText="课时节次" />
                            <ext:BoundField DataField="LabName" Width="180px" HeaderText="实验室" />
                            <ext:BoundField DataField="date" Width="120px" HeaderText="日期" DataFormatString="{0:D}" />
                            <ext:CheckBoxField DataField="isOpen" HeaderText="能否预约" />
                            <ext:WindowField WindowID="window1" HeaderText="开始预约" Icon="CalendarAdd" DataIFrameUrlFormatString="SendReservation.aspx?labid={0}&date={1:yyyy-MM-dd}&lessonid={2}"
                                DataIFrameUrlFields="LabID,date,lessonID" DataWindowTitleFormatString="预约实验室：{0}"
                                DataWindowTitleField="LabName" />
                        </Columns>
                    </ext:Grid>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Panel>
    <ext:Window runat="server" ID="window1" Width="320px" Height="380px" Popup="false"
        Icon="CalendarAdd" EnableMaximize="true" EnableCollapse="true" EnableIFrame="true"
        Title="预约实验室" IsModal="true" EnableAjaxLoading="true">
    </ext:Window>
    </form>
</body>
</html>
